package com.test.java01;

public class Phone {

    private String brand;
    private int price;
    //空参构造
    public Phone(){

    }
    //有参构造
    public Phone(String brand,int price){
        this.brand=brand;
        this.price=price;
    }
    public void setBrand(String brand){
        this.brand=brand;
    }
    public String getBrand(){
        return brand;
    }
    public void setPrice(int price){
        this.price=price;
    }
    public int getPrice(){
        return price;
    }












}
